<form xmlns:py="http://purl.org/kid/ns#"
      name="${name}"
      action="${action}"
      method="${method}"
      class="tableform"
      py:attrs="form_attrs"
    >
    <h3><center> ${title} </center></h3>


    <div py:for="field in hidden_fields"
         py:replace="field.display(value_for(field), **params_for(field))"
        />
        <table border="0" cellspacing="0" cellpadding="2" py:attrs="table_attrs">
            <tr py:for="i, field in enumerate(fields)"
                class="aa"
            >
                <th>
                    <label class="fieldlabel" for="${field.field_id}" py:content="field.label" />
                </th>
                <td>
                    <span py:replace="field.display(value_for(field), **params_for(field))" />
                    <span py:if="error_for(field)" class="fielderror" py:content="error_for(field)" />
                    <span py:if="field.help_text" class="fieldhelp" py:content="field.help_text" />
                </td>
            </tr>
            <tr>
                <td><input type='button' onclick='cancel();' value='Cancel'/></td>
                <td >
               ${submit(submit_text, attrs=btn_attrs)} </td>
            </tr>
        </table>
    </form>
 